﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
using FarseerGames.FarseerPhysics;
using FarseerGames.FarseerPhysics.Collisions;
using FarseerGames.FarseerPhysics.Controllers;
using FarseerGames.FarseerPhysics.Dynamics;
using FarseerGames.FarseerPhysics.Factories;
using FarseerGames.FarseerPhysics.Interfaces;
using FarseerGames.FarseerPhysics.Mathematics;

namespace Warlock.GameStuff
{
    class BaseCharacter : PhysicsSprite
    {
        public const float PlayerRadius = 2f;
        public const float PlayerMass = 200;

        protected int healh;
        public int Health { get { return healh; } set { healh = value; } }

        protected string name;
        public string Name { get { return name; } set { name = value; } }

        public BaseCharacter()
            : base()
        {
            body = BodyFactory.Instance.CreateCircleBody(MainGameScreen.PhysicsSimulator, PlayerRadius, PlayerMass);
            geom = GeomFactory.Instance.CreateCircleGeom(MainGameScreen.PhysicsSimulator, body, PlayerRadius, 30);
        }
    }
}